.class public Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;
.super Lcom/esfile/screen/recorder/base/BaseActivity;
.source "GifConvertPreviewActivity.java"

# interfaces
.implements Lcom/esfile/screen/recorder/player/h$c;


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0x15
.end annotation


# static fields
.field private static m:Les/cd;

.field private static n:[Ljava/lang/String;

.field private static o:I

.field private static p:I


# instance fields
.field private a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

.field private b:Landroid/view/View;

.field private c:I

.field private d:Z

.field private e:Z

.field private f:Z

.field private g:Landroid/view/ViewGroup;

.field private h:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

.field private i:Les/ae;

.field private j:Z

.field private k:Z

.field private l:Lcom/esfile/screen/recorder/videos/gifconvert/i$a;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->d:Z

    .line 3
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->f:Z

    .line 4
    new-instance v0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$g;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$g;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->l:Lcom/esfile/screen/recorder/videos/gifconvert/i$a;

    return-void
.end method

.method private A()V
    .locals 2

    .line 1
    sget v0, Les/x4;->durec_video_edit_preview_player:I

    invoke-virtual {p0, v0}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    .line 2
    sget-object v1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->n:[Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a([Ljava/lang/String;)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setTimeRenderFlags(I)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    sget-object v1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->m:Les/cd;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setVideoEditPlayerInfo(Les/cd;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$a;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/a$g;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$b;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/a$i;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$c;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$c;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;->setOnBackClickListener(Landroid/view/View$OnClickListener;)V

    .line 8
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$d;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$d;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;->setOnSaveClickListener(Landroid/view/View$OnClickListener;)V

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    new-instance v1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$e;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$e;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->a(Lcom/esfile/screen/recorder/player/exo/a$d;)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    invoke-virtual {v0, p0}, Lcom/esfile/screen/recorder/player/h;->setOnControllerVisibilityChangeListener(Lcom/esfile/screen/recorder/player/h$c;)V

    .line 11
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/h;->d()V

    return-void
.end method

.method private B()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->h:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->h:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    .line 3
    sget v1, Les/z4;->durec_gif_saving:I

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->setProgressText(I)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->h:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    new-instance v1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$f;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$f;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->setOnCancelClickListener(Landroid/view/View$OnClickListener;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->h:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->setVisibility(I)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->g:Landroid/view/ViewGroup;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->h:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    return-void
.end method

.method private C()V
    .locals 2

    .line 1
    new-instance v0, Lcom/esfile/screen/recorder/videos/gifconvert/h;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/h;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V

    const-string v1, "toGif"

    invoke-static {v0, v1}, Les/s4;->a(Les/s4$a;Ljava/lang/String;)V

    return-void
.end method

.method private D()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    sget-object v1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->m:Les/cd;

    iget-object v1, v1, Les/cd;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->setVideoPath(Ljava/lang/String;)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->o()V

    return-void
.end method

.method private E()V
    .locals 6

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->isDestroyed()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    const v0, 0x1040011

    .line 2
    new-instance v1, Lcom/esfile/screen/recorder/ui/a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/ui/a;-><init>(Landroid/content/Context;)V

    const/4 v2, 0x0

    .line 3
    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/ui/a;->b(Z)V

    .line 4
    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/ui/a;->a(Z)V

    .line 5
    invoke-virtual {p0}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    .line 6
    invoke-static {v3}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v3

    sget v4, Les/y4;->durec_emoji_dialog_layout:I

    const/4 v5, 0x0

    .line 7
    invoke-virtual {v3, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    .line 8
    sget v4, Les/x4;->emoji_icon:I

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 9
    sget v5, Les/w4;->durec_system_lacked_dialog_warn:I

    invoke-virtual {v4, v5}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 10
    sget v4, Les/x4;->emoji_title:I

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    const/16 v5, 0x8

    invoke-virtual {v4, v5}, Landroid/view/View;->setVisibility(I)V

    .line 11
    sget v4, Les/x4;->emoji_message:I

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 12
    invoke-virtual {v4, v0}, Landroid/widget/TextView;->setText(I)V

    .line 13
    invoke-virtual {v1, v3}, Lcom/esfile/screen/recorder/ui/a;->a(Landroid/view/View;)V

    const v0, 0x1040010

    .line 14
    new-instance v3, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$h;

    invoke-direct {v3, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$h;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V

    invoke-virtual {v1, v0, v3}, Lcom/esfile/screen/recorder/ui/a;->b(ILandroid/content/DialogInterface$OnClickListener;)V

    .line 15
    new-instance v0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$i;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity$i;-><init>(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V

    invoke-virtual {v1, v0}, Lcom/esfile/screen/recorder/ui/a;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    .line 16
    invoke-virtual {v1, v2}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V

    .line 17
    invoke-virtual {v1}, Lcom/esfile/screen/recorder/ui/a;->show()V

    return-void
.end method

.method private static a(Landroid/util/Pair;)Landroid/util/Pair;
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/util/Pair<",
            "Ljava/lang/Long;",
            "Ljava/lang/Long;",
            ">;)",
            "Landroid/util/Pair<",
            "Ljava/lang/Long;",
            "Ljava/lang/Long;",
            ">;"
        }
    .end annotation

    .line 3
    iget-object v0, p0, Landroid/util/Pair;->first:Ljava/lang/Object;

    if-nez v0, :cond_0

    const-wide/16 v0, 0x0

    goto :goto_0

    :cond_0
    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    .line 4
    :goto_0
    iget-object p0, p0, Landroid/util/Pair;->second:Ljava/lang/Object;

    if-nez p0, :cond_1

    move-wide v2, v0

    goto :goto_1

    :cond_1
    check-cast p0, Ljava/lang/Long;

    invoke-virtual {p0}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    .line 5
    :goto_1
    new-instance p0, Landroid/util/Pair;

    const-wide/16 v4, 0x64

    div-long/2addr v0, v4

    mul-long v0, v0, v4

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    div-long/2addr v2, v4

    mul-long v2, v2, v4

    const-wide/16 v4, 0x1

    add-long/2addr v2, v4

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-direct {p0, v0, v1}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    return-object p0
.end method

.method private a(II)V
    .locals 0

    if-lt p1, p2, :cond_0

    if-eqz p1, :cond_0

    if-eqz p2, :cond_0

    const/4 p1, 0x0

    .line 6
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    goto :goto_0

    :cond_0
    const/4 p1, 0x1

    .line 7
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    :goto_0
    return-void
.end method

.method public static a(Landroid/app/Activity;Les/cd;II[Ljava/lang/String;I)V
    .locals 0

    .line 8
    sput-object p1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->m:Les/cd;

    .line 9
    sput-object p4, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->n:[Ljava/lang/String;

    .line 10
    sput p2, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->o:I

    .line 11
    sput p3, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->p:I

    .line 12
    new-instance p1, Landroid/content/Intent;

    const-class p2, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;

    invoke-direct {p1, p0, p2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 13
    invoke-virtual {p0, p1, p5}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->f:Z

    return p0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->f:Z

    return p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    return-object p0
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->e:Z

    return p1
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)Landroid/view/View;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->b:Landroid/view/View;

    return-object p0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->k:Z

    return p1
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->x()Z

    move-result p0

    return p0
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->j:Z

    return p1
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->C()V

    return-void
.end method

.method static synthetic f(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->E()V

    return-void
.end method

.method private f(Z)V
    .locals 1

    if-nez p1, :cond_0

    const/16 p1, 0xf07

    goto :goto_0

    :cond_0
    const/16 p1, 0x700

    .line 2
    :goto_0
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/view/View;->setSystemUiVisibility(I)V

    return-void
.end method

.method static synthetic g(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)Z
    .locals 0

    .line 1
    iget-boolean p0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->k:Z

    return p0
.end method

.method static synthetic h(Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->y()V

    return-void
.end method

.method private w()V
    .locals 2

    .line 1
    sget-object v0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/esfile/screen/recorder/utils/i;->d(Ljava/lang/String;)Lcom/esfile/screen/recorder/media/util/y;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v1

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v0

    invoke-direct {p0, v1, v0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a(II)V

    return-void
.end method

.method private x()Z
    .locals 5

    .line 1
    sget-object v0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->b:Les/cd$s;

    iget-wide v1, v0, Les/cd$s;->a:J

    const-wide/16 v3, 0x64

    div-long/2addr v1, v3

    long-to-int v2, v1

    .line 2
    iget-wide v0, v0, Les/cd$s;->b:J

    div-long/2addr v0, v3

    long-to-int v1, v0

    sub-int/2addr v1, v2

    const/16 v0, 0xc8

    if-gt v1, v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method private y()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->i:Les/ae;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Les/ae;->a()V

    :cond_0
    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->j:Z

    return-void
.end method

.method private z()V
    .locals 5

    .line 1
    new-instance v0, Les/ae;

    new-instance v1, Les/z6;

    invoke-direct {v1}, Les/z6;-><init>()V

    invoke-direct {v0, v1}, Les/ae;-><init>(Lcom/esfile/screen/recorder/gif/encoder/a;)V

    iput-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->i:Les/ae;

    .line 2
    new-instance v1, Landroid/util/Pair;

    sget-object v2, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->m:Les/cd;

    iget-object v2, v2, Les/cd;->b:Les/cd$s;

    iget-wide v2, v2, Les/cd$s;->a:J

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    sget-object v3, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->m:Les/cd;

    iget-object v3, v3, Les/cd;->b:Les/cd$s;

    iget-wide v3, v3, Les/cd$s;->b:J

    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-static {v1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a(Landroid/util/Pair;)Landroid/util/Pair;

    move-result-object v1

    invoke-virtual {v0, v1}, Les/ae;->a(Landroid/util/Pair;)V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->i:Les/ae;

    invoke-static {p0}, Les/w6;->a(Landroid/content/Context;)Les/w6;

    move-result-object v1

    invoke-virtual {v1}, Les/w6;->f()I

    move-result v1

    invoke-virtual {v0, v1}, Les/ae;->a(I)V

    .line 4
    sget v0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->o:I

    sget v1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->p:I

    invoke-static {v0, v1}, Les/x6;->a(II)Landroid/util/Pair;

    move-result-object v0

    .line 5
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->i:Les/ae;

    new-instance v2, Lcom/esfile/screen/recorder/media/util/y;

    iget-object v3, v0, Landroid/util/Pair;->first:Ljava/lang/Object;

    check-cast v3, Ljava/lang/Integer;

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    iget-object v4, v0, Landroid/util/Pair;->second:Ljava/lang/Object;

    check-cast v4, Ljava/lang/Integer;

    invoke-virtual {v4}, Ljava/lang/Integer;->intValue()I

    move-result v4

    invoke-direct {v2, v3, v4}, Lcom/esfile/screen/recorder/media/util/y;-><init>(II)V

    invoke-virtual {v1, v2}, Les/ae;->a(Lcom/esfile/screen/recorder/media/util/y;)V

    .line 6
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "gif size = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "GifConvertPreviewActivity"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 7
    sget-object v0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->m:Les/cd;

    iget-object v0, v0, Les/cd;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->i:Les/ae;

    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->h:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    iget-object v3, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->l:Lcom/esfile/screen/recorder/videos/gifconvert/i$a;

    invoke-static {p0, v0, v1, v2, v3}, Lcom/esfile/screen/recorder/videos/gifconvert/i;->a(Landroid/content/Context;Ljava/lang/String;Les/ae;Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;Lcom/esfile/screen/recorder/videos/gifconvert/i$a;)V

    return-void
.end method


# virtual methods
.method public d(I)V
    .locals 1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    .line 3
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->f(Z)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x4

    if-ne p1, v0, :cond_1

    const/4 p1, 0x0

    .line 4
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->f(Z)V

    :cond_1
    :goto_0
    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->j:Z

    if-eqz v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->y()V

    return-void

    .line 3
    :cond_0
    invoke-super {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    return-void
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 2
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/View;->invalidate()V

    .line 3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    if-eqz p1, :cond_0

    .line 4
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/player/h;->d()V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    .line 1
    invoke-super {p0, p1}, Lcom/esfile/screen/recorder/base/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    const/4 p1, 0x1

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->f(Z)V

    .line 3
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/16 v0, 0x400

    invoke-virtual {p1, v0}, Landroid/view/Window;->addFlags(I)V

    .line 4
    invoke-virtual {p0}, Landroid/app/Activity;->getWindow()Landroid/view/Window;

    move-result-object p1

    const/16 v0, 0x80

    invoke-virtual {p1, v0}, Landroid/view/Window;->addFlags(I)V

    .line 5
    sget-object p1, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->m:Les/cd;

    if-eqz p1, :cond_1

    iget-object p1, p1, Les/cd;->a:Ljava/lang/String;

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_0

    goto :goto_0

    .line 6
    :cond_0
    sget p1, Les/y4;->durec_video_edit_preivew:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 7
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->w()V

    .line 8
    sget p1, Les/x4;->root:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/view/ViewGroup;

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->g:Landroid/view/ViewGroup;

    .line 9
    sget p1, Les/x4;->preview_video_loading:I

    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->b:Landroid/view/View;

    const/4 v0, 0x0

    .line 10
    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 11
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->B()V

    .line 12
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->A()V

    .line 13
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->D()V

    return-void

    .line 14
    :cond_1
    :goto_0
    invoke-virtual {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->h:Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/ui/VideoEditProgressView;->a()V

    .line 4
    :cond_0
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->y()V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    if-eqz v0, :cond_1

    .line 6
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->p()V

    :cond_1
    return-void
.end method

.method protected onPause()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onPause()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    if-eqz v0, :cond_0

    iget-boolean v1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->e:Z

    if-eqz v1, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->getCurrentPosition()I

    move-result v0

    iput v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->c:I

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->c()Z

    move-result v0

    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->d:Z

    :cond_0
    return-void
.end method

.method protected onStart()V
    .locals 2

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onStart()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    if-eqz v0, :cond_1

    const/4 v1, 0x0

    .line 3
    iput-boolean v1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->e:Z

    .line 4
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->n()V

    .line 5
    iget v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->c:I

    if-lez v0, :cond_1

    .line 6
    iget-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->d:Z

    if-eqz v0, :cond_0

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->o()V

    .line 8
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    iget v1, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->c:I

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/videos/edit/player/c;->c(I)V

    :cond_1
    return-void
.end method

.method protected onStop()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/esfile/screen/recorder/base/BaseActivity;->onStop()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    if-eqz v0, :cond_0

    .line 3
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->p()V

    :cond_0
    return-void
.end method

.method public u()Ljava/lang/String;
    .locals 1

    const-string v0, "GifConvertPreviewActivity"

    return-object v0
.end method

.method public synthetic v()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->a:Lcom/esfile/screen/recorder/videos/edit/player/preview/VideoEditPreviewPlayer;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/videos/edit/player/c;->l()V

    .line 2
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->y()V

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->j:Z

    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->k:Z

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/gifconvert/GifConvertPreviewActivity;->z()V

    return-void
.end method
